import { pubRequire } from '@utils/public'
const baseUrl = '/dataview/retaineds'

/*图表 */
export function getChartsList(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/trend`, obj, callbBack, errBack)
}
//图表-导出
export function exportCharts() {
  return `${baseUrl}/export/charts`
}
/*留存分析-留存数列表 */
export function getTableNum(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/nums`, obj, callbBack, errBack)
}
/*留存分析-留存率列表 */
export function getTableRate(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/rates`, obj, callbBack, errBack)
}
//留存分析-留存数列表-导出
export function exportTableNum() {
  return `${baseUrl}/export/nums`
}
//留存分析-留存率列表-导出
export function exportTableRate() {
  return `${baseUrl}/export/rates`
}
